#ifndef __MYREDIS_H__
#define __MYREDIS_H__

#include <hiredis/hiredis.h>
#include "../include/RedisPool.h"
#include <iostream>
#include <string>


using std::cout;
using std::endl;

using std::string;

class RedisPool;

class MyRedis
{
public:
    MyRedis();
    ~MyRedis();
    bool connect(int name);
    void set(string key, string value);
    string get(string key);
    void put_conn(int name);

private:
    redisContext *_pConnect;
    redisReply *_pReply;
    //RedisPool _pool;
    RedisPool& pool = RedisPool::getInstance();
    
};

#endif
